import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/one/'
  },
  {
    path: '/one/',
    name: 'Home',
    component: Home
  },
  {
    path: '/one/about',
    name: 'About',
    component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  }
]

const router = new VueRouter({
  // base: window.__POWERED_BY_QIANKUN__ ? '/one/' : '/', // 仅在打包不在根目录时使用
  routes
})

export default router
